<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ page import="entity.User" %>
<table>

<jsp:useBean id="user" class="entity.User" scope="session"></jsp:useBean>
<%
	if(user.getUsername().equals("student")){
%>
<tr><td><a href="<%=pageContext.getServletContext().getContextPath() %>/jsp/showPersonalInfo.jsp">个人中心</a></td></tr>
<tr><td><a href="<%=pageContext.getServletContext().getContextPath() %>/jsp/showCourse.jsp">全部课程</a></td></tr>
<tr><td><a href="<%=pageContext.getServletContext().getContextPath() %>/jsp/showSelectedCourse.jsp">我的课程</a></td></tr>
<%
	}else if(user.getUsername().equals("admin")){
%>
<tr><td><a href="<%=pageContext.getServletContext().getContextPath() %>/jsp/showPersonalInfo.jsp">个人中心</a></td></tr>
<tr><td><a href="<%=pageContext.getServletContext().getContextPath() %>/jsp/addCourse.jsp">添加课程</a></td></tr>
<tr><td><a href="<%=pageContext.getServletContext().getContextPath() %>/jsp/showCourse.jsp">全部课程</a></td></tr>
<%
	}
%>
</table>
